﻿<model class="ewXform">
  <instance>
    <emailer xmlns="http://www.eonic.co.uk/ewcommon/Services">
      <oBodyXML>
        <Items>
          <Name />
          <Email />
          <Message />
          <BlogArticle />
        </Items>
      </oBodyXML>
      <xsltPath>/xsl/Email/mailform.xsl</xsltPath>
      <fromName></fromName>
      <fromEmail>admin@site.com</fromEmail>
      <recipientEmail>admin@site.com</recipientEmail>
      <SubjectLine>Blog Comment from website</SubjectLine>
    </emailer>
  </instance>
  <submission method="post" action="/ewCommon/Services.asmx" SOAPAction="http://www.eonic.co.uk/ewcommon/Services/emailer" id="send" event="return form_check(this);" />
  <bind id="emailer" nodeset="emailer">
    <bind id="oBodyXML" nodeset="oBodyXML/Items">
      <bind id="Name" nodeset="Name" required="true()" type="string" />
      <bind id="Email" nodeset="Email" required="true()" type="email" />
      <bind id="Message" nodeset="Message" required="true()" type="string" />
      <bind id="cBlogArticle" nodeset="BlogArticle" required="false()" type="string" />
    </bind>
  </bind>
</model>
<group>
  <label>Submit a comment to this blog</label>
  <input bind="Name" appearance="" class="required">
    <label>Name</label>
  </input>
  <input bind="Email" class="required">
    <label>Email</label>
  </input>
  <textarea bind="Message" class="required textarea" rows="4">
    <label>Message</label>
  </textarea>
  <input bind="cBlogArticle" class="hidden" />
  <submit submission="send" bind="ewCmd" class="principle">
    <label>Send</label>
  </submit>
</group>
